LOCAL_PATH := $(call my-dir)
WEBRTC := webrtc

include $(CLEAR_VARS)

LOCAL_MODULE := webrtc_aecm
LOCAL_CFLAGS += -DWEBRTC_POSIX
LOCAL_LDLIBS := -llog
LOCAL_SRC_FILES	:= $(WEBRTC)/modules/audio_processing/utility/fft4g.c \
				$(WEBRTC)/modules/audio_processing/ns/noise_suppression.c \
				$(WEBRTC)/modules/audio_processing/ns/ns_core.c \
				$(WEBRTC)/common_audio/vad/webrtc_vad.c \
				$(WEBRTC)/common_audio/vad/vad_core.c \
				$(WEBRTC)/common_audio/vad/vad_filterbank.c \
				$(WEBRTC)/common_audio/vad/vad_gmm.c \
				$(WEBRTC)/common_audio/vad/vad_sp.c \
				$(WEBRTC)/common_audio/signal_processing/real_fft.c \
				$(WEBRTC)/common_audio/signal_processing/division_operations.c \
				$(WEBRTC)/common_audio/signal_processing/complex_bit_reverse.c \
				$(WEBRTC)/common_audio/signal_processing/cross_correlation.c \
				$(WEBRTC)/common_audio/signal_processing/complex_fft.c \
				$(WEBRTC)/common_audio/signal_processing/downsample_fast.c \
				$(WEBRTC)/common_audio/signal_processing/vector_scaling_operations.c \
				$(WEBRTC)/common_audio/signal_processing/get_scaling_square.c \
				$(WEBRTC)/common_audio/signal_processing/energy.c \
				$(WEBRTC)/common_audio/signal_processing/min_max_operations.c \
				$(WEBRTC)/common_audio/signal_processing/spl_init.c \
				$(WEBRTC)/common_audio/signal_processing/resample_48khz.c \
				$(WEBRTC)/common_audio/signal_processing/resample_by_2_internal.c \
				$(WEBRTC)/common_audio/signal_processing/resample_fractional.c \
				randomization_functions.c \
				spl_sqrt_floor.c \
				delay_estimator.c \
				delay_estimator_wrapper.c \
				ring_buffer.c \
				aecm_core.c \
				echo_control_mobile.c \
				aecm_wrapper.c

include $(BUILD_SHARED_LIBRARY)

